<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.dqm.serviceImpl.UserServiceImpl" import="com.dqm.pojo.User"%>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
	<a href="user.jsp"><input type="button" value="主页"></a>
	<a href="index.jsp"><input type="button" value="登录"></a>
	<a href="signup.jsp"><input type="button" value="注册"></a>
	<a href="reset.jsp"><input type="button" value="重置密码"></a>&nbsp;&nbsp;
	<% if(UserServiceImpl.isLoggedIn(session)) {%> 
	<%User u = (User)session.getAttribute("currentUser");%>
	欢迎您：<%=u.getUsername()%>
	<button type="button" onclick="window.location.href='out'">注销</button>
	<%} else { %>
	<a href="index.jsp">请登录</a>
	<% } %>
</body>
</html>